package cn.terminus.client.customer.customlabel.service;

import java.util.Date;

import cn.terminus.client.customer.customlabel.param.CustomLabelNewParam;
import cn.terminus.client.customer.customlabel.param.CustomLabelEditParam;
import cn.terminus.client.customer.customlabel.param.CustomLabelQueryParam;
import cn.terminus.client.customer.customlabel.param.CustomLabelDeleteParam;
import cn.terminus.client.customer.customlabel.param.CustomLabelGetsParam;
import cn.terminus.client.customer.customlabel.result.CustomLabelResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (CustomLabel)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:52
 */
public interface CustomLabelService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(CustomLabelNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(CustomLabelEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomLabelResult>> gets(CustomLabelGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(CustomLabelDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomLabelResult>> query(CustomLabelQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<CustomLabelResult>> page(CustomLabelQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
